-- card: 2282 from stack: in.2 -- bmap block id: 3170 -- flags: 0000 -- background id: 2812 -- name: Syntax & examples -- part 8 (field) -- low flags: 81 -- high flags: 0000 -- rect: left=73 top=61 right=80 bottom=144 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Button ID -- part 29 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=20 top=123 right=309 bottom=498 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 21 -- text size: 12 -- style flags: 0 -- line height: 14 -- part name: Syntax & examples -- part contents for card part 29 ----- text ----- -- Put the following statement on a line by itself in your scripts -- This puts your DA names into an item list in the container "namesOfDAs." GetDANames -- Some examples of HyperTalk statements which can make use of this item list: put namesOfDAs into card field set the name of card button to item 3 of namesOfDAs -- The function below will allow you to repeat some action for each of your DAs: function numberOfDAs GetDANames return the number of items in namesOfDAs end numberOfDAs You can then use a loop such as "Repeat with = 1 to numberOfDAs() ..."